69 WDT_A_hold(WDT_A_BASE);
72 GPIO_setAsPeripheralModuleFunctionOutputPin(
84 Comp_B_initParam initParam = {0};
85 initParam.positiveTerminalInput = COMP_B_INPUT0;
86 initParam.negativeTerminalInput = COMP_B_VREF;
87 initParam.powerModeSelect = COMP_B_POWERMODE_NORMALMODE;
88 initParam.outputFilterEnableAndDelayLevel = COMP_B_FILTEROUTPUT_DLYLVL1;
89 initParam.invertedOutputPolarity = COMP_B_NORMALOUTPUTPOLARITY;
90 Comp_B_init(COMP_B_BASE, &initParam);
100 Comp_B_configureReferenceVoltageParam refVoltageParam = {0};
101 refVoltageParam.supplyVoltageReferenceBase = COMP_B_VREFBASE_VCC;
102 refVoltageParam.lowerLimitSupplyVoltageFractionOf32 = 8;
103 refVoltageParam.upperLimitSupplyVoltageFractionOf32 = 24;
104 refVoltageParam.referenceAccuracy = COMP_B_ACCURACY_STATIC;
105 Comp_B_configureReferenceVoltage(COMP_B_BASE, &refVoltageParam);
108 Comp_B_enable(COMP_B_BASE);
114 __bis_SR_register(LPM4_bits);